Skip to content

[Automated] Draft docs (kagent): helm/metrics: omit reader RBAC for HTTP metrics - #747

Merged
Rachael-Graham merged 2 commits into
mainfrom
pr-tracker-draft-kagent-3671
Nov 30, 2026
Merged

Rachael-Graham merged 2 commits into
mainfrom
pr-tracker-draft-kagent-3671

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

kagent-dev/kagent#3671 — helm/metrics: omit reader RBAC for HTTP metrics

Docs versions: main

What changes for users: Installations that enable controller metrics with config.metrics.secure: false can run with namespace-scoped permissions. The chart now omits the metrics RBAC for HTTP metrics, including when rbac.namespaces or global.watchNamespaces sets a namespace scope.

What the docs now say: The Metrics page now separates secure HTTPS metrics from unauthenticated HTTP metrics. It explains that secure metrics require the <fullname>-metrics-reader ClusterRole, while HTTP metrics do not render metrics RBAC.

How kagent-3671 was drafted

Plan, and what changed it

  • Planned: Add the config.metrics.secure: false namespace-scoped behavior to the page that already documents controller metrics.
  • Learned: observability/metrics.md states that enabling metrics creates metrics RBAC, while installation.md is a full install walkthrough and operational-considerations.md only links to the metrics page.
  • Did: Updated docs-site/content/kagent/main/observability/metrics.md and left the two routed candidate pages unchanged.

Why a documentation change is necessary

The pull request changes the chart so HTTP controller metrics do not render the metrics reader ClusterRole or the metrics auth RBAC. The existing Metrics page said that enabling the metrics endpoint creates the metrics RBAC and that Prometheus access always depends on the metrics reader ClusterRole. That statement is now true only for secure metrics.

Rejected docs-site/content/kagent/main/setup/installation.md because it is an end-to-end install walkthrough, not the page where readers configure metric scraping. Rejected docs-site/content/kagent/main/operations/operational-considerations.md because its metrics section is only a pointer to the Metrics page.

How to verify this change

  1. Render the chart with HTTP metrics and a namespace-scoped installation.
    helm template kagent \
      oci://ghcr.io/kagent-dev/kagent/helm/kagent \
      --namespace kagent \
      --set controller.metrics.enabled=true \
      --set config.metrics.secure=false \
      --set 'rbac.namespaces={kagent}' \
      | yq 'select((.kind == "ClusterRole" or .kind == "ClusterRoleBinding") and (.metadata.name | test("metrics"))) | .kind + "/" + .metadata.name'
    The command prints no metrics ClusterRole or ClusterRoleBinding.
  2. Render the chart with HTTP metrics and global.watchNamespaces.
    helm template kagent \
      oci://ghcr.io/kagent-dev/kagent/helm/kagent \
      --namespace kagent \
      --set controller.metrics.enabled=true \
      --set config.metrics.secure=false \
      --set 'global.watchNamespaces={kagent}' \
      | yq 'select((.kind == "ClusterRole" or .kind == "ClusterRoleBinding") and (.metadata.name | test("metrics"))) | .kind + "/" + .metadata.name'
    The command prints no metrics ClusterRole or ClusterRoleBinding.
  3. Render the chart with secure metrics.
    helm template kagent \
      oci://ghcr.io/kagent-dev/kagent/helm/kagent \
      --namespace kagent \
      --set controller.metrics.enabled=true \
      --set config.metrics.secure=true \
      | yq 'select((.kind == "ClusterRole" or .kind == "ClusterRoleBinding") and (.metadata.name | test("metrics"))) | .kind + "/" + .metadata.name'
    The output includes the metrics reader RBAC.

Proposed release note

No proposed-release-note.md: markers.notes_placeable is false. Suggested text: Allow HTTP controller metrics with namespace-scoped installation permissions.

Files in this pull request

  • docs-site/content/kagent/main/observability/metrics.md
How the pages were chosen (triage report)

Feature clusters

Kept apart on purpose. Merging wrongly produces a guide that documents two things and explains neither, so these are reported for a person to merge rather than grouped automatically:

New configuration: no page mentions it yet

kagent-dev/kagent#3671 — helm/metrics: omit reader RBAC for HTTP metrics

  • Product: kagent (upstream) → kagent-dev/website
  • Docs version: main
  • Release note: Allow HTTP controller metrics with namespace-scoped installation permissions.
  • Not tested: no cluster was available, so every command in this diff is unrun

Draft branch: pr-tracker-draft-kagent-3671

actions-user and others added 2 commits November 22, 2026 10:20
…TTP metrics

Signed-off-by: GitHub Action <action@github.com>
Signed-off-by: Rachael Graham <rachael.graham@solo.io>
@Rachael-Graham
Rachael-Graham merged commit 5273f43 into main Nov 30, 2026
4 checks passed
@Rachael-Graham
Rachael-Graham deleted the pr-tracker-draft-kagent-3671 branch November 30, 2026 18:55
@github-actions

Copy link
Copy Markdown
Contributor Author

Docs preview

Link Points at
Branch preview The newest push to this branch. Updates in place.
Commit preview 7139670 only. Frozen.

Both are uploaded Worker versions and serve no production traffic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants